import request from '@/utils/request'

// 获取当前登录用户
export const userDetail = () =>
    request.get('/user/me')

// 验证码 登录接口
export const userLoginService = ({ phone, code }) =>
    request.post('/user/login', { phone, code })

// 密码 登录接口
export const userPwdLoginService = ({ phone, password }) =>
    request.post('/user/loginPwd', { phone, password })

// 获取用户基本信息
export const userGetInfoService = () => request.get('/user/me')